<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入ElementUI样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <!-- 引入ElementUI组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
<div id="app">
    <el-button type="text" @click="dialogTableVisible = true">打开嵌套表格的 Dialog</el-button>
    <el-dialog title="对话框" :visible.sync="dialogTableVisible">
        <el-tabs value="first">
            <el-tab-pane label="用户管理" name="first">用户管理</el-tab-pane>
            <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane>
            <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
            <el-tab-pane label="下拉菜单" name="fourth">
                <el-dropdown  split-button size="small" trigger="click" @command="handleCommand">
                个人中心
                <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item command="lockout">退出系统</el-dropdown-item>
                    <el-dropdown-item command="update" divided>修改密码</el-dropdown-item>
                    <el-dropdown-item command="call" divided>联系管理员</el-dropdown-item>
                </el-dropdown-menu>
            </el-dropdown></el-tab-pane>
        </el-tabs>

    </el-dialog>
</div>
</body>
<script type="text/javascript">
    new Vue({
        el:"#app",
        data:{
            dialogTableVisible: false
        },
        methods:{
            handleCommand(command){
                this.$message({
                    type:"info",
                    message:command
                })
            }
        }
    })
</script>
</html>